package org.google.json;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public class JSONElement {
	private float[] points;
	
	public float[] getPoints(){
		return this.points;
	}
	
	public void parse(JSONObject object){
		try {
			JSONArray array = object.getJSONArray("path");
			this.points = new float[array.length()];
			
			//array.
			for (int i = 0; i < array.length(); i++) {
				this.points[i] = (float)array.getDouble(i);
				//this.points[i] = Float.parseFloat(o.)
			}
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	
	
	
	
	
}
